/*
 *      entity.cpp
 *      
 *      2009 Víctor Manuel Ochoa <kanito8a@gmail.com>
 *      
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *      
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */


#include "entity.h"


Entity::Entity()
{
	m_alive=false;
}


Entity::~Entity()
{
	
}

bool Entity::init()
{
	Physics::init();
	for(int i=0;i<3;i++)
	{
		//~ m_position[i]=0.f;		
		//~ m_rotation[i]=0.f;		
		m_scale[i]=1.f;		
		m_color[i]=1.f;
	}
	m_flipped=1.0f;
	m_alive=true;
	return true;
}

bool Entity::init(float _x,float _y,float _z,float _rot,float _scalex,float _scaley,float _scalez)
{
	Physics::init(Vector2(_x,_y),Vector2(0.f,0.f),_rot,0.f,0.f,1.f);
	m_z=_z;
	m_scale[0]=_scalex;
	m_scale[1]=_scaley;
	m_scale[2]=_scalez;
	
	for(int i=0;i<3;i++)
		m_color[i]=1.f;		
	
	m_alive=true;	
	m_flipped=1.0f;
	return true;
}

//~ bool Entity::init(float _position[3],float _rotation[3],float _scale[3])
//~ {
	//~ for(int i=0;i<3;i++)
	//~ {
		//~ m_position[i]=_position[i];		
		//~ m_rotation[i]=_rotation[i];
		//~ m_scale[i]=_scale[i];
		//~ m_color[i]=1.f;
	//~ }	
	//~ return true;
//~ }

void Entity::freeMemory()
{

}


